package cn.kimming.wms.web.action;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;

import cn.kimming.wms.domain.JsonMsg;
import cn.kimming.wms.util.JsonUtils;

public class BaseAction extends ActionSupport implements Preparable{
	
	private static final long serialVersionUID = 2854517183017637062L;
	
	public static final String LIST = "list";
	
	protected void putJSON(Object data) {
		HttpServletResponse resp = ServletActionContext.getResponse();
		JsonUtils.putJSON(resp, data);
	}

	@Override
	public void prepare() throws Exception {
		
	}
	
}
